<%@ page pageEncoding="utf-8" %>
<%@include file="/commons/taglibs.jsp" %>
<!DOCTYPE html>
<html>
<fmt:bundle basename="res">
<head>
    <meta charset="utf-8">
    <title><fmt:message key='zbjktxy'/></title>
    <jsp:include page="/WEB-INF/commons/commons-header.jsp" flush="true"/>
    <style>
        html {
            background: #fff;
        }
    </style>
</head>

<body>
<div class="layui-container">
    <div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 30px 0 0;">

        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: red;">*</span> <fmt:message key='nrms'/></label>
            <div class="layui-input-inline" style="width: 70%">
                <div id="feijin-content" style="height:400px; width: 100%;"></div>
                <input type="hidden" id="note" value='${applyNote}'>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label"></label>
            <div class="layui-input-inline">
                <input type="button" class="layui-btn" value="<fmt:message key='qd'/>" id="submit">
            </div>
        </div>
    </div>
</div>

<script type="text/javascript" src="${web_domain}/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="${web_domain}/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" src="${web_domain}/ueditor/lang/zh-cn/zh-cn.js"></script>

<script>


    layui.use(['form', 'layer'], function () {

        var layer = layui.layer;
        var contentEdit = UE.getEditor('feijin-content');

        contentEdit.addListener("ready", function () {
            contentEdit.setContent('${applyNote}');
        });

        $("#submit").click(function () {
            var content = contentEdit.getContent();
            if (!content) {
                layer.msg("<fmt:message key='qsrnr'/>");
                return;
            }
            feijin.put({
                data: {"note": content},
                success: function (res) {
                    layer.msg(res.message);
                }
            });
        });

    });

</script>
</body>
</fmt:bundle>
</html>